<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('index')}" method="post">
        <input type="hidden" name="pageNum" value="${model.pageNum}">
        <input type="hidden" name="numPerPage" value="${model.numPerPage}">
        <input type="hidden" name="orderField" value="${param.orderField}">
        <input type="hidden" name="orderDirection" value="${param.orderDirection}">
        <div class="bjui-searchBar">
            <div class="alert alert-info search-inline"><i class="fa fa-info-circle"></i> 双击行可编辑</div>&nbsp;
            <div class="pull-right" <php>echo display(CONTROLLER_NAME.'/delMultiRow');</php>>
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
						<li><a href="{:U('delMultiRow')}/brandIds/{#bjui-selected}" data-toggle="doajax" data-confirm-msg="确定要删除选定的品牌吗？">删除选中</a></li>
						
                    </ul>
                </div>
            </div>
            <button  <php>echo display(CONTROLLER_NAME.'/update');</php> type="button" class="btn-green" data-toggle="tableditadd" data-target="#tabledit1" data-num="1" data-icon="plus">添加品牌</button>&nbsp;
			<button type="button" class="btn btn-green" data-icon="refresh" onclick="javascript:$.CurrentNavtab.navtab('reload');">刷新</button>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
  <form action="{:U('index')}" id="j_custom_form" class="pageForm" data-toggle="validate" method="post">
        <table id="tabledit1" class="table table-bordered table-hover table-striped table-top" data-toggle="tabledit" data-initnum="0" data-action="{:U('update')}" data-single-noindex="true"  data-selected-multi="true">
            <thead>
                <tr data-idname="customList[#index#][brand_id]">
                    <th title="No." width="200"><input type="text"  class="no" data-rule="required" readonly="ture" ></th>
                    <th title="品牌名称"><input type="text" name="customList[#index#][brand_name]" data-rule="required" size="5"></th>
					<th title="" data-addtool="true" width="400">
                        <a href="javascript:;" class="btn btn-green" data-toggle="dosave">保存</a>
                        <a href="{:U('remove?delrow=1')}" class="btn btn-red row-del" data-confirm-msg="确定要删除该行信息吗？">删</a>
                    </th>
                </tr>
            </thead>
            <tbody>
			  <notempty name="_list">
			  <volist name="_list" id="vo">
                <tr data-id="{$vo.brand_id}">
                    <td data-id-val="{$vo.brand_id}">{$vo.brand_id}</td>
                    <td>{$vo.brand_name}</td>
					 <td data-noedit="true">
                        <button <php>echo display(CONTROLLER_NAME.'/update');</php> type="button" class="btn-green" data-toggle="doedit">编辑</button>
                        <a  <php>echo display(CONTROLLER_NAME.'/remove');</php>  href="{:U('remove?id='.$vo['brand_id'])}" class="btn btn-red row-del" data-confirm-msg="确定要删除该行信息吗？">删</a>
                         <input type="hidden" name="customList[#index#][brand_id]" value="{$vo.brand_id}">
                    </td>
                </tr>
              </volist>
      		</notempty>
            </tbody>
        </table>
    </form>
</div>
